package com.stony.enums;

/**
 * Created by ShiHui on 2014/6/3.
 */
public enum MongoTypes {
    STANDALONE("standalone"),RS("rs"),CLUSTER("cluster"),MASTER_SLAVE("masterslave");

    String name;
    MongoTypes(String typeName){
        this.name = typeName;
    }

    @Override
    public String toString() {
        return this.name;
    }

    public static void main(String[] args){
        System.out.println("standalone".equals(MongoTypes.STANDALONE.toString()));
    }
}
